<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <script>
      // 传统方式
      var arr = [1, 2, 3];
      var a = arr[0];
      var b = arr[1];
      var c = arr[2];

      // 解构赋值
      [a, b, c] = [1, 2, 3];
    </script>
  </body>
</html>